package com.dalong.springboot.service;

import com.dalong.springboot.bean.DbUser;
import com.dalong.springboot.dao.DbUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2018/11/27 0027.
 */
@Service
public class UserService {

    @Autowired
    DbUserMapper userMapper;


    public List<DbUser> getUserAll(){
        System.out.println("开始访问数据");
        return userMapper.selectByExample(null);
    }



    public List<DbUser> getUserAndClassAll(){
        return userMapper.selectByExampleAndClass(null);
    }


}
